path_to_remove="/usr/lib/xoronos/py"
PYTHONPATH="$(echo "$PYTHONPATH" | tr ':' '\n' | grep -v "^$path_to_remove" | tr '\n' ':' | sed 's/:$//')"
export PYTHONPATH

path_to_remove="/usr/lib/xoronos"
LD_LIBRARY_PATH="$(echo "$LD_LIBRARY_PATH" | tr ':' '\n' | grep -v "^$path_to_remove" | tr '\n' ':' | sed 's/:$//')"
export LD_LIBRARY_PATH

path_to_remove="$HOME/.local/xoronos/texmf"
TEXMFHOME="$(echo "$TEXMFHOME" | tr ':' '\n' | grep -v "^$path_to_remove" | tr '\n' ':' | sed 's/:$//')"
export TEXMFHOME

